package com.omybug.study.service;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Service;

/**
 * @author: omybug
 * @date: 18/9/16 22:21
 */
@Service
public class BookService {

    @EventListener(classes = {ApplicationEvent.class})
    public void listen(ApplicationEvent event){
        System.out.println(event.toString());
    }
}
